((window)=>{
    var msg = "BBBBBBBBBBBBBBBBB　"
    //操作数据的函数
    function doSomething() {
        console.log("doSomething一个方法"+ msg.toLocaleLowerCase())
    }
    function doOtherthing() {
        console.log("doOtherthing一个方法"+ msg.toUpperCase())     
    }
    //XXXXXxxxx...

    //向外抛出  添加window属性 
    window.myModule2 =  {
        doSomething:doSomething,
        doOtherthing:doOtherthing
    }
})(window)

